Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subnet/kube: Handle missed node deletions #982

Conversation

richardmarshall
Copy link

Description

If the node controller misses the deletion of a node the DeltaFIFO will insert a tombstone object (DeletedFinalStateUnknown) with the last known view of the object. The current code will panic due to a failed type assertion to v1.Node.

This PR includes a fix for this panic by checking the result of the type assertion and attempting to extract the last know state from the tombstone.

Todos

  • Tests
  • Documentation
  • Release note

Release Note

None required

If the node controller misses the deletion of a node the DeltaFIFO will
insert a tombstone object with the last known view of the object. This
commit adds checking to the type assertion and extraction of the
previous node object when possible.

Signed-off-by: Richard Marshall <rgm@linux.com>
@tomdee
Copy link
Contributor

tomdee commented Jul 9, 2018

Sorry, I didn't spot this when I merged #1000

@tomdee tomdee closed this Jul 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants